# 利用fastapi 作一个最简单的接口
from fastapi import FastAPI
from uvicorn import run 

app = FastAPI()

@app.get('/')
async def root():
    return {"message":"  中图hello world   xxxzzzzs"}

if __name__ == "__main__":

    # run(app,host="0.0.0.0",port=8000, reload=True)
    run("myfastapi:app",host="0.0.0.0",port=8000, reload=True)
